package com.cms.pms;

import java.util.Random;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource("applicationContext.xml")
public class PmsApplication {

	public static void main(String[] args) {
		ApplicationContext context=SpringApplication.run(PmsApplication.class, args);
		Bussiness b=(Bussiness) context.getBean("buss");
		System.out.println(b.process());
		int c=0;
		for(;;)
		{
			b.process();
			b.pxx();
			b.p2();
			b.p3();
			c++;
			if(c % 10000 ==0)
			{
				System.out.println("c = "+ c);
			}
		}
	}
}
